<template>
  <!-- 拍照组件 -->
  <cameraComponent @setBase64Img="base64img"></cameraComponent>
</template>

<script>

import cameraComponent from "../authentication/personal/cameraComponent";

export default {
  components: {
    "cameraComponent": cameraComponent,
  },
  data() {
    return {
      ruleForm: {},// 二维码扫码参数
    };
  },
  onLoad(option) {
    // DecryptCommon(option.data).then((response) => {
    //   this.ruleForm = paramString2Obj(response);
    // })
    this.ruleForm = option;
  },
  methods: {
    // 获取拍照数据
    base64img(res) {
      this.ruleForm.faceBase64 = res;
      [this.signFace][this.ruleForm.verifyType]();
    },
    // 签署人脸认证
    signFace() {

    },
  },
}
</script>

<style scoped>

</style>